Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/false positive app err logs #1268

Merged
merged 17 commits into from
Jun 29, 2022
Merged

Fix/false positive app err logs #1268

merged 17 commits into from
Jun 29, 2022

Conversation

ersonp
Copy link
Contributor

@ersonp ersonp commented Jun 22, 2022

Did you run make format && make check?
yes

Fixes #1264

Changes:

  • Fixed false positive stderr logs
  • Added errors
  • Fixed routing table logs
  • Added app started and stopped info logs

How to test this PR:

  1. Start visor without root ./skywire-visor -c skywire-config.json
  2. Start and stop all apps
  3. Check logs
  4. Start visor root sudo ./skywire-visor -c skywire-config.json
  5. Start and stop all apps
  6. Check logs
  7. Try this on linux, mac and windows (use administrator on win)

ersonp added 9 commits June 22, 2022 17:56
This commit filters the false positive app errors by getting the StderrPipe of the cmd and using a *bufio.Scanner to read, filter and print the logs of the apps.
This commit adds info logs to app start and stopped detailed state.

We add the new detailed state AppDetailedStatusStopped to every app on shutdown.

The app_state is also moved from package launcher to package appserver to get around the cyclic dependency so that we can use actual Detailed status instead of strings in Proc in the package appserver.
@ersonp ersonp marked this pull request as ready for review June 28, 2022 08:26
@mrpalide
Copy link
Contributor

Linux and Windows are OK, but I get rpc error in Mac during stopping visor.
mac.log

@mrpalide mrpalide merged commit 956096d into skycoin:develop Jun 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants